{$t("invoice.addTipq")}
{#if !showCustomAmount}
{Math.round(tipPercent)}%
{f(amountFiat, currency, locale)}
+{f(tipAmount, currency, locale)}
{s(amount, locale)}
+{s(tip, locale)}
{#if tip}
submit.click()} >Next
(tipPercent = 0)} >Reset
{:else} {#each tipAmounts as amount, i} {#if i === 0}
handleTipButtonClick(amount)}>{amount}
{:else}
handleTipButtonClick(amount)}>{amount}
{/if} {/each} {/if}
(showCustomAmount = true)} >{$t("payments.custom")}
{$t("payments.cancel")}
{/if}
{#if showCustomAmount}
handleCustomTipAmount(e)} placeholder={$t("payments.amount")} use:focus />
Apply
{/if}